package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Item;
import com.ruoyi.system.mapper.ItemMapper;
import com.ruoyi.system.service.IItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements IItemService {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public Item selectItemById(String itemId) {
        return itemMapper.selectItemById(itemId);
    }

    @Override
    public List<Item> selectItemList(Item item) {
        return itemMapper.selectItemList(item);
    }

    @Override
    public int insertItem(Item item) {
        return itemMapper.insertItem(item);
    }

    @Override
    public int updateItem(Item item) {
        return itemMapper.updateItem(item);
    }

    @Override
    public int deleteItemById(String itemId) {
        return itemMapper.deleteItemById(itemId);
    }

    @Override
    public int deleteItemByIds(String[] itemIds) {
        return itemMapper.deleteItemByIds(itemIds);
    }
}